<!-- 此tpl如使用script标签渲染，请遵循layui.laytpl语法，此页面，支持PHP语法-->
<script type="text/html" id="adminBarDemo">
    {foreach name="right_buttons" key="key" item="vo"}
        {{#  if (d.id != '1') { }}
        <a class="{:getBtnClassTpl($vo.class,$vo.title)}" lay-event="{$vo.json}">{$vo.title}</a>
        {{#  } }}
    {/foreach}
</script>

<script type="text/html" id="switchStatus">
        {{#  if (d.id != 1) { }}
        <input type="checkbox" name="status" value="{{d.id}}" lay-filter="status" lay-skin="switch" lay-val="1|0" lay-text="启用|停用" title="启用|停用" {{d.status== 1 ? 'checked' : '' }}>
        {{#  } else { }}
        -
        {{#  } }}
</script>

<script type="text/html" id="switchLock">
        {{#  if (d.id != 1) { }}
        <input type="checkbox" name="is_lock" value="{{d.id}}" lay-filter="status" lay-skin="switch" lay-val="1|0" lay-text="启用|停用" title="启用|停用" {{d.is_lock== 1 ? 'checked' : '' }}>
        {{#  } else { }}
        -
        {{#  } }}
</script>
